<template>
  <view class="page">
    <view class="block">
      <image class="block__icon" src="~@/static/my/addressIcon.png" />
      <view class="yd-flex-v">
        <text>雷成（<text class="yellow">18718645212</text>）</text>
        <text class="text">广东省广州市天河区黄埔大中100号</text>
      </view>
      <image class="block__delete" src="~@/static/my/delete.png" />
    </view>
    <view class="block">
      <image class="block__icon" src="~@/static/my/addressIcon.png" />
      <view class="yd-flex-v">
        <text>小白（<text class="yellow">18718645212</text>）</text>
        <text class="text">广东省广州市天河区黄埔大中100号</text>
      </view>
      <image class="block__delete" src="~@/static/my/delete.png" />
    </view>
    <view class="block">
      <image class="block__icon" src="~@/static/my/addressIcon.png" />
      <view class="yd-flex-v">
        <text>小黑（<text class="yellow">18718645212</text>）</text>
        <text class="text">广东省广州市天河区黄埔大中100号</text>
      </view>
      <image class="block__delete" src="~@/static/my/delete.png" />
    </view>
    <view @tap="create" class="global-btn">添加新地址</view>
  </view>
</template>

<script>
export default {
  methods: {
    create() {
      uni.navigateTo({
        url: './create'
      })
    }
  }
}
</script>

<style lang="scss">
.page {
  box-sizing: border-box;
  padding: 24rpx 24rpx 28% 24rpx;
}
.block {
  background-color: #fff;
  border-radius: 14rpx;
  color: #333333;
  font-size: 26rpx;
  box-sizing: border-box;
  padding: 24rpx;
  display: flex;
  align-items: center;
  margin-bottom: 24rpx;
  font-weight: bold;
  position: relative;
  .text {
    font-size: 24rpx;
    margin-top: 8rpx;
    font-weight: 400;
    line-height: 1.3;
    color: #666;
  }
  .yellow {
    color: #FBBF0D;
  }
}
.block__icon {
  min-width: 64rpx;
  width: 64rpx;
  height: 64rpx;
  margin-right: 20rpx;
}
.block__delete {
  width: 44rpx;
  height: 44rpx;
  position: absolute;
  top: 0;
  right: 0;
}
</style>
